﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinQ_DTO;
using DAO;
namespace BUS
{
    public class ChamDiemBUS
    {
        public List<shop_chamdiem> LayTatCaChamDiem()
        {
            ChamDiemDAO Dao = new ChamDiemDAO();
            return Dao.LayTatCaChamDiem();
        }




        public List<shop_chamdiem> LayChamDiemCuaMotSanPham(int MaSP)
        {
            ChamDiemDAO Dao = new ChamDiemDAO();
            return Dao.LayChamDiemCuaMotSanPham(MaSP);
        }

        public void ThemDiemChoSP(shop_chamdiem NewRecord)
        {
            ChamDiemDAO Dao = new ChamDiemDAO();
             Dao.ThemDiemChoSP(NewRecord);
        }
    }
}
